from api.ihrm_dep_mange_api import IHRMDepManageApi
from common.token_util import TokenUtil


class DepUtil:
    @classmethod
    def get_dep_id(cls):
        token = TokenUtil.get_token()
        body={"name":"test100","code":"12345"}
        resp =IHRMDepManageApi.add_dep_api(token,body)
        dep_id = resp.json().get("data").get("id")
        return dep_id
        pass

if __name__ == '__main__':
    print(DepUtil.get_dep_id())